*,
*::before,
*::after {
    box-sizing: border-box;
}
::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-track {
  background-color: transparent;
}
::-webkit-scrollbar-track:hover {
  background-color: #f8fafc;
}
html {
    font-size: 12px;
    font-family: Helvetica, Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
}
body {
    font-size: 12px;
    color: #303133;
    background-color: #fff;
}
a {
    color: mix(#fff, $--color-primary, 20%);
    text-decoration: none;
    &:focus,
    &:hover {
        color: $--color-primary;
        text-decoration: none;
    }
}
img {
    vertical-align: middle;
}


/* Utils
------------------------------ */
.clearfix::before,
.clearfix::after {
    content: " ";
    display: table;
}
.clearfix::after {
    clear: both;
}


/* Animation
------------------------------ */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.5s;
}
.fade-enter,
.fade-leave-to {
    opacity: 0;
}


/* Reset element-ui
------------------------------ */
.site-wrapper {
    .el-pagination {
        margin-top: 15px;
        text-align: right;
    }
}


/* Layout
------------------------------ */
.site-wrapper {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    transition: all 0.2s;
    position: relative;
    min-width: 1180px;
}


/* Sidebar fold
------------------------------ */
.site-sidebar--fold {
    .site-navbar__header,
    .site-navbar__brand,
    .site-sidebar,
    .site-sidebar__inner,
    .el-menu.site-sidebar__menu {
        width: 64px;
    }
    .site-navbar__body,
    .site-content__wrapper {
        margin-left: 64px;
    }
    .site-sidebar,
    .site-sidebar__inner {
        overflow: initial;
    }
    .site-sidebar__menu-icon {
        margin-right: 0;
        font-size: 0.35rem;
    }
    .site-content--tabs > .el-tabs > .el-tabs__header {
        left: 64px;
    }
}
// animation
.site-navbar__header,
.site-navbar__brand,
.site-navbar__body,
.site-sidebar,
.site-sidebar__inner,
.site-sidebar__menu.el-menu,
.site-sidebar__menu-icon,
.site-content__wrapper,
.site-content--tabs > .el-tabs .el-tabs__header {
    transition: inline-block 0.3s, left 0.3s, width 0.3s, margin-left 0.3s, font-size 0.3s;
}


/* Navbar
------------------------------ */
.site-navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    background-color: $navbar--background-color;
    &--inverse {
        .site-navbar__body {
            background-color: transparent;
        }
        .el-menu {
            > .el-menu-item,
            > .el-submenu .el-submenu__title {
                color: #fff;
                &:focus,
                &:hover {
                    color: #fff;
                    background-color: mix(#000, $navbar--background-color, 15%);
                }
            }
            > .el-menu-item.is-active,
            > .el-submenu.is-active .el-submenu__title {
                border-bottom-color: mix(#fff, $navbar--background-color, 85%);
            }
            .el-menu-item i,
            .el-submenu__title i,
            .el-dropdown {
                color: #fff;
            }
        }
        .el-menu--popup-bottom-start {
            background-color: $navbar--background-color;
        }
    }
    &__header {
        position: relative;
        float: left;
        width: 64px;
        height: 150px;
        overflow: hidden;
    }
    &__brand {
        float: left;
        height: 50px;
        margin: 0;
        line-height: 50px;
        font-size: 20px;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
        color: #fff;
        &-lg {
            margin: 0 5px;
            color: #fff;
            &:focus,
            &:hover {
                color: #fff;
                text-decoration: none;
            }
        }
    }
    &__switch {
        font-size: 18px;
        border-bottom: none !important;
    }
    &__avatar {
        border-bottom: none !important;
        * {
            vertical-align: inherit;
        }
        .el-dropdown-link {
            > img {
                width: 36px;
                height: auto;
                margin-right: 5px;
                border-radius: 100%;
                vertical-align: middle;
            }
        }
    }
    &__body {
        position: relative;
        margin-left: 64px;
        padding-right: 15px;
        background-color: #fff;
    }
    &__menu {
        float: left;
        background-color: transparent;
        border-bottom: 0;
        &--right {
            float: right;
        }
        a:focus,
        a:hover {
            text-decoration: none;
        }
        .el-menu-item,
        .el-submenu .el-submenu__title {
            height: 50px;
            line-height: 50px;
        }
        .el-submenu > .el-menu {
            top: 155px;
        }
        .el-badge {
            display: inline;
            z-index: 2;
            &__content {
                line-height: 16px;
            }
        }
    }
}


/* Sidebar
------------------------------ */
.site-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    z-index: 1020;
    width: 230px;
    overflow: hidden;
    &--dark,
    &--dark-popper {
        background-color: $sidebar--background-color-dark;
        .site-sidebar__menu.el-menu,
        > .el-menu--popup {
            background-color: $sidebar--background-color-dark;
            .el-menu-item,
            .el-submenu .el-submenu__title {
                color: $sidebar--color-text-dark;
                &:focus,
                &:hover {
                    color: mix(#fff, $sidebar--color-text-dark, 50%);
                    background-color: mix(#fff, $sidebar--background-color-dark, 2.5%);
                }
            }
            .el-menu,
            .el-submenu.is-opened {
                background-color: mix(#000, $sidebar--background-color-dark, 15%);
            }
            .el-menu-item.is-active,
            .el-submenu.is-active .el-submenu__title {
                color: mix(#fff, $sidebar--color-text-dark, 80%);
            }
        }
    }
    &__inner {
        position: relative;
        z-index: 1;
        width: 250px;
        height: 100%;
        padding-bottom: 15px;
        overflow-y: scroll;
    }
    &__menu.el-menu {
        width: 230px;
        border-right: 0;
    }
    &__menu-icon {
        width: 24px;
        margin-right: 5px;
        text-align: center;
        font-size: 16px;
        color: inherit !important;
    }
}


/* Content
------------------------------ */
.site-content {
    position: relative;
    padding: 15px;
    &__wrapper {
        flex: auto;
        position: relative;
        padding: 55px 0 0;
        overflow: hidden;
        margin-left: 230px;
        min-height: 100%;
        background: $content--background-color;
    }
    &--tabs {
        padding: 55px 0 0;
    }
    > .el-tabs {
        > .el-tabs__header {
            position: fixed;
            top: 70px;
            left: 230px;
            right: 0;
            z-index: 930;
            padding: 0 55px 0 10px;
            box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
            background-color: #fff;
            > .el-tabs__nav-wrap {
                margin-bottom: 0;
                &::after {
                    display: none;
                }
            }
        }
        > .el-tabs__content {
            padding: 5px 5px 5px;
            > .site-tabs__tools {
                position: fixed;
                top: 70px;
                right: 0;
                z-index: 931;
                height: 40px;
                padding: 0 10px;
                font-size: 16px;
                line-height: 40px;
                background-color: $content--background-color;
                cursor: pointer;
                .el-icon--right {
                    margin-left: 0;
                }
            }
            > .site-tabs__refresh {
                position: fixed;
                top: 50px;
                left: 95%;
                z-index: 931;
                height: 40px;
                padding: 0 200px;
                font-size: 16px;
                line-height: 40px;
                background-color: $content--background-color;
                cursor: pointer;
                .el-icon--right {
                    margin-left: 0;
                }
            }
        }
    }
}

/* el-table
------------------------------ */
.el-table .cell {
    line-height: 15px;
}
.el-dialog__body {
    overflow: hidden;
}
.el-card__body {
    padding-left: 15px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.el-form-item__label {
    color: #000;
}
.el-input__inner {
    -webkit-appearance: none;
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid rgb(188, 189, 194);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    outline: 0;
    padding: 0 15px;
    -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
}
.el-input.is-disabled .el-input__inner {
    background-color: #f5f7fa;
    border-color: #e4e7ed;
    color: #000;
    cursor: not-allowed;
}
.el-textarea.is-disabled .el-textarea__inner {
    background-color: #f5f7fa;
    border-color: #e4e7ed;
    color: #000;
    cursor: not-allowed;
}
#nprogress .bar {
    background: red !important; // 自定义颜色
}
.el-form-item__content {
    color: #000;
}

// .el-form-item--mini.el-form-item, .el-form-item--small.el-form-item {
//   margin-bottom: 0px;
// }
.el-divider--horizontal {
    margin: 10px 0;
}

// 表头换行
.el-table .cell {
    white-space: pre-line;
}

/* 设置表头的高度 */
// .el-table__header td,
// .el-table__header th {
//     padding: 3px 0;
// }

/* 合计行字体加粗 */
.el-table__footer-wrapper td {
    font-weight: bold;
}
.pub_dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    .el-dialog {
        margin: 0 auto !important;
        bottom: 0;
        height: 95%;
        overflow: hidden;
        border-radius: 18px;
        .el-dialog__body {
            position: absolute;
            left: 0;
            top: 26px;
            bottom: 0;
            right: 0;
            padding: 0;
            z-index: 1;
            overflow: hidden;
            overflow-y: auto;
        }
        .el-dialog__close {
            font-size: 30px;
        }
        .el-dialog__headerbtn {
            top: 0;
            right: 5px;
            font-size: 30px;
        }
        .el-dialog__title {
            padding: 0;
            line-height: 0px;
            font-size: 15px;
            color: #303133;
        }
    }
}

.el-dialog {
  border-radius: 10px;
}

.el-dialog__header {
  padding: 10px 10px 10px;
}

.el-dialog__body {
  padding: 5px 10px;
}

.el-card__header {
  padding: 10px 10px;
  font-size: 16px;
  font-weight: bold;
}

.el-transfer-panel {
  width: 42%;
}

.el-form-item__label {
  font-weight: bold;
}
